import request from '@/utils/request'

// 配送点商品销量统计
export function goodsStatisticsPoint(query) {
  return request({
    url: '/system/goodsStatistics/point',
    method: 'get',
    params: query
  })
}


// 分类商品销量统计
export function goodsStatisticsClassify(query) {
  return request({
    url: '/system/goodsStatistics/classify',
    method: 'get',
    params: query
  })
}


// 配送点订单数量统计
export function orderStatisticsPoint(query) {
  return request({
    url: '/system/orderStatistics/point',
    method: 'get',
    params: query
  })
}


// 单商品销量统计
export function goodsStatisticsList(query) {
  return request({
    url: '/system/goodsStatistics/list',
    method: 'get',
    params: query
  })
}


// 用户消费统计
export function orderUserStatistics(query) {
  return request({
    url: '/system/orders/orderStatistics',
    method: 'get',
    params: query
  })
}


// 
export function listByTime(query) {
  return request({
    url: '/system/orders/listByTime',
    method: 'get',
    params: query
  })
}

// 
export function singlePointSale(query) {
  return request({
    url: '/system/singlePointSale/list',
    method: 'get',
    params: query
  })
}
